#include "healingspell.h"
#include "../unit.h"

void HealingSpell::cast(Unit* src, Unit* /*dst*/) {
    src->MP.Current -= mp_cost;
    if ((src->HP.Current + power) > src->HP.Maximum) {
        src->HP.Current = src->HP.Maximum;
    }
    else {
        src->HP.Current += power;
    }
}
